<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Jaws.Core.Web.Entities.Pages.Page>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Details
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%
        Title = Model.Title;


        if (!string.IsNullOrEmpty(Model.Description))
        {

            var meta = new HtmlMeta { Name = "description", Content = Model.Description };
            Page.Header.Controls.Add(meta);
        }
        if (!string.IsNullOrEmpty(Model.Description))
        {

            var meta = new HtmlMeta { Name = "keywords", Content = Model.Keywords };
            Page.Header.Controls.Add(meta);
        }

    %>
    <h1>
        <%= Html.Encode(Model.Title) %></h1>
    <p class="small">
        <img src="../../Content/limelight/images/clock.gif" alt="" /><%= Html.Encode(Model.DateCreated) %></p>
    <p>
        <%= Html.Encode(Model.Content) %>
    </p>
    <%=Html.ActionLink("Edit", "Edit", new {ID = Model.Id/* id=Model.PrimaryKey */ }) %>
    |
    <%=Html.ActionLink("Back to List", "Index") %>
    
    <% Html.RenderPartial("CommentForm", new Jaws.Core.Web.Entities.Comments.Comment());%>
</asp:Content>
